package com.jhgsys.internal.sypq.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jhgsys.internal.common.entity.BaseEntity;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;


/**
 * 项目审批 Entity
 *
 * @author ganjun
 * @date 2024-11-16 21:20:36
 */
@Data
@TableName("sypq_workflow_record")
public class WorkflowRecord extends BaseEntity implements Serializable {



    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 单据类型,数据字典VOUCH_TYPE,1:任务管理task 2:桨模model_oras,3:附体model_attach 4:客户base_customer 5:项目base_project 6:船模model_ship7任务排期task_assign
     */
    @TableField(value = "voucher_type")
    @Size(max = 10, message = "{noMoreThan}")
    private String voucherType;

    /**
     * 审批单据id
     */
    @TableField("voucher_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String voucherId;

    /**
     * 审批状态,1:䓍稿,2:待审核,3:驳回,4:通过
     */
    @TableField("status")
    @NotNull(message = "{required}")
    private Integer status;

    /**
     * 审批意见
     */
    @TableField("remark")
    @Size(max = 200, message = "{noMoreThan}")
    private String remark;

}